<?php $url = new Url();?>
<div id="main" class="">
    <div id="sidebar">        
        <!--<h3>Hoạt động</h3>
        <p>
        <input checked="checked" id="show_issues" name="show_issues" type="checkbox" value="1">
        <label for="show_issues"><a href="javascript:">Vấn đề</a></label>
        <br>

        <input checked="checked" id="show_news" name="show_news" type="checkbox" value="1">
        <label for="show_news"><a href="javascript:">Tin tức</a></label>
        <br>                

        <input checked="checked" id="show_files" name="show_files" type="checkbox" value="1">
        <label for="show_files"><a href="javascript:">Tập tin</a></label>
        <br>                

        <input id="show_time_entries" name="show_time_entries" type="checkbox" value="1">
        <label for="show_time_entries"><a href="javascript:">Spent time</a></label>
        <br>
        </p>
        <p><input class="button-small" type="submit" value="Áp dụng"></p>-->
    </div>

    <div id="content">

        <h2>Hoạt động</h2>
        <!--<p class="subtitle">Từ 10-09-2012 tới 14-09-2012</p>-->

        <div id="activity">
            <!--<h3>Hôm Nay</h3>-->
            <dl>
                <?php foreach((array)$data_activity as $row){ ?>

                    <dt class="<?php switch($row['activty_type']){case 1:echo "issue-edit";break;case 2:echo "issue-closed";break;case 3:echo "issue";break;case 4:echo "issue-edit";break;case 5:echo "news";break;} ?> me">
                        <span class="time"><?php echo date('H:i d/m/Y',$row['activity_update_time']); ?></span>
                        <a href="javascript:"><?php echo $row['activity_name']; ?></a>
                    </dt>
                    <dd>
                        <span class="description"></span>
                        <span class="author">
                            <a href="<?php echo $url->createUrl("user/detail",array("user_id"=>$row['activity_user_id'])); ?>"><?php echo $row['fullname']; ?></a>
                        </span>
                    </dd>

                    <?php } ?>

                <!--<dt class="issue-edit me">
                    <span class="time">10:39</span>
                    <a href="javascript:">Bug #1362 (Resolved): Sửa form khai member sân (description)</a>
                </dt>
                <dd>
                    <span class="description"></span>
                    <span class="author">
                        <a href="/users/1402">Nguyen Tuan Anh</a>
                    </span>
                </dd>

                <dt class="issue-closed me">
                    <span class="time">10:38</span>
                    <a href="javascript:">Bug #1362 (Rejected): Sửa form khai member sân (description)</a>
                </dt>
                <dd>
                    <span class="description"></span>
                    <span class="author">
                        <a href="/users/1402">Nguyen Tuan Anh</a>
                    </span>
                </dd>

                <dt class="issue  me">

                    <span class="time">06:56</span>

                    <a href="javascript:">Bug #1362 (Resolved): Sửa form khai member sân (description)</a>
                </dt>
                <dd>
                    <span class="description">tesda</span>
                    <span class="author"><a href="javascript:">Nguyen  Tuan Anh</a></span>
                </dd>

                <dt class="news  me">

                    <span class="time">06:54</span>

                    <a href="javascript:">Hà Nội trong gió lạnh đầu mùa</a></dt>
                <dd><span class="description">Sau đêm dài luôn ú ớ mê sảng, Nguyễn Thị Chinh (13 tuổi) - người thoát chết ở hồ Tuy Lai (Mỹ Đức, Hà Nội) chiều 12/9 ...</span>
                    <span class="author"><a href="javascript:">Nguyen  Tuan Anh</a></span></dd>

                <dt class="news  me">

                    <span class="time">06:53</span>

                    <a href="javascript:">thêm phát nữa</a></dt>
                <dd><span class="description">và lại phát nữa</span>
                    <span class="author"><a href="javascript:">Nguyen  Tuan Anh</a></span></dd>

                <dt class="news  me">

                    <span class="time">06:53</span>

                    <a href="javascript:">test</a></dt>
                <dd><span class="description">tews</span>
                    <span class="author"><a href="javascript:">Nguyen  Tuan Anh</a></span></dd>-->
            </dl>
        </div>

        <!--<div style="float:left;">
            <a href="javascript:" title="From 05-09-2012 to 09-09-2012">« Trước</a>
        </div>-->
        <div style="float:right;">
        </div>        

        <div style="clear:both;"></div>
    </div>
</div>